package com.happy.mapper;

import com.happy.model.entity.CardTime;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CardTimeMapper {
    @Delete("delete from tb_card_time where card_id = #{id}")
    void deleteCardTime(Integer id);

    @Select("select * from tb_card_time where card_id = #{id}")
    CardTime getCardTime(Integer id);

}
